package com.starblink.library.widget.route

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.starblink.android.basic.aroute.SubscriptionProvider
import com.starblink.basic.route.RoutePage
import com.starblink.library.widget.subscription.showSubsEmailInputDialog

/**
 *  Create by yuanl at 2023/10/18
 **/
@Route(path = RoutePage.Widget.WIDGET_SUBSCRIPTION)
class SubscriptionProviderImp: SubscriptionProvider {

    override fun showSubsEmailInputDialog(context: Context, email: String?, dialogHeight:Int?, success: ()-> Unit) {
        context.showSubsEmailInputDialog(email, dialogHeight, success)
    }

    override fun getName(): String = "Subscription"

    override fun init(context: Context?) {

    }
}